import { request } from '@/utils/request.js'

// 获取下单信息
export function apiGetPreOrderNew(data = {}) {
	return request({
		url: "/order/preOrderNew",
		data
	})
}

// 选择优惠券
export function apiCouponChange(data = {}) {
	return request({
		url: "/order/couponChange",
		data,
		method: "post",
	})
}

// 获取下单凑单商品
export function apiGetAddBuyProduct(data = {}) {
	return request({
		url: "/order/getAddBuyProduct",
		data
	})
}

// 提交订单信息
export function apiCreateOrder(data = {}) {
	return request({
		url: "/order/createOrder",
		data,
		method: "post",
	})
}


